#include <stdio.h>
#include <map>

int main(int argc, const char **argv) {
    std::multimap<char, int> mymm;

    auto ret = mymm.insert(std::make_pair('a', 1));
    ret = mymm.insert(std::make_pair('a', 1));
    printf("%c => %d\n", ret->first, ret->second);
    printf("%d\n", mymm.size());

    std::pair<std::multimap<char, int>::iterator, std::multimap<char, int>::iterator> ret2;
    ret2 = mymm.equal_range('a');

    for (auto it = ret2.first; it != ret2.second; ++it) {
        printf("%c => %d\n", it->first, it->second);
    }

    return 0;
}
